package edu.uoc.tdp.pac4.client.stats;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import edu.uoc.tdp.pac4.client.ClientConnectionHelper;
import edu.uoc.tdp.pac4.common.util.LanguageUtils;

public class StatsGeneralStaff extends JPanel {
	
	private ClientConnectionHelper connection;

	public StatsGeneralStaff(ClientConnectionHelper connectionHelper) {
		super(new GridLayout(1, 1));
		connection = connectionHelper;

		JTabbedPane tabbedPane = new JTabbedPane();

		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.staff1"), null, new StatsStaffTeachAndAttend(connection), "");

		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.staff2"), null, new StatsStaffCoursesAndAttendance(connection), "");

		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.staff3"), null, new StatsStaffStudentOverlapping(connection), "");

		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.staff4"), null, new StatsStaffRatioAttendance(connection), "");
		
		tabbedPane.addTab(LanguageUtils.getMessage("client.stat.staff5"), null, new StatsStaffAssigAttendance(connection), "");

		// Add the tabbed pane to this panel.
		add(tabbedPane);

		// The following line enables to use scrolling tabs.
		tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
	}

}